package com.turing.customer.service;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.nacos.shaded.com.google.gson.JsonObject;
import com.turing.customer.entity.Customer;
import com.baomidou.mybatisplus.extension.service.IService;
import result.Result;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;

/**
* @author Lenovo
* @description 针对表【customer(客户表)】的数据库操作Service
* @createDate 2023-04-10 15:14:50
*/
public interface CustomerService extends IService<Customer> {

    Result customerLogin(String cusNickname, String cusImg, String openId);

    Result liveDay(String day1);

    Result liveMonth(String mth, Integer count) throws ParseException;

    Result cusEdit(JSONObject jsonObject);

    Result geCusById(String id);

    Result cusList(String cusNickname, String cusInfo, Integer sortType, Integer orderType, Integer pageNum, Integer pageSize);

    Result cusCenter(String cusId);

    Result rankList(Integer orderType, Integer pageNum, Integer pageSize);

    Result myWallet();

    Result cusPay(JSONObject jsonObject) throws ParseException;

    Result likeList(String cusId, Integer pageNum, Integer pageSize);

    Result cnSave(String cusId);

    Result cusListByCusIds(String[] ids);
}
